<?php

namespace App\Models;



use Illuminate\Database\Eloquent\Model;

class User extends Model
{
 public $a;
 protected $table = 'user';
 protected $appends = ['upwd','repwd','uname','utel'];
 protected $fillable= ['uname','upassword','repassword','utel'];
 public function getUpwdAttribute($a){
     return $this->attributes['upassword']=md5($a);
 }
 public function getRepwdAttribute($a){
     return $this->attributes['repassword']=md5($a);
 }
 public function  getUnameAttribute($a){
     return $this->attributes['uname']=$a;
 }
 public function  getUtelAttribute($a){
     return $this->attributes['utel']=$a;
 }
}
